package records

import (
	"database/sql"
	"github.com/golib/mysql"
)

//速算题库

const RecordNameWxEduQuestionsNew = "wx_edu_questions_new"

func init() {
	var r = &WxEduQuestionsNew{}
	mysql.RegisterRecord(r.Name(), r, "sstiku")
}

type WxEduQuestionsNew struct {
	QuestionID      int             `json:"QuestionID" form:"QuestionID" column:"QuestionID" primary:"true" modify:"false"`
	Question        *sql.NullString `modify:"true" json:"Question" form:"Question" column:"Question"`
	QuestionType    int             `column:"QuestionType" modify:"true" json:"QuestionType" form:"QuestionType"`
	DisplayType     int             `form:"DisplayType" column:"DisplayType" modify:"true" json:"DisplayType"`
	AddTime         interface{}     `form:"AddTime" column:"AddTime" modify:"true" json:"AddTime"`
	RightAnswer     *sql.NullString `form:"RightAnswer" column:"RightAnswer" modify:"true" json:"RightAnswer"`
	AnswerExplain   *sql.NullString `column:"AnswerExplain" modify:"true" json:"AnswerExplain" form:"AnswerExplain"`
	Options         *sql.NullString `json:"Options" form:"Options" column:"Options" modify:"true"`
	Difficulty      int             `column:"Difficulty" modify:"true" json:"Difficulty" form:"Difficulty"`
	LastModifyTime  interface{}     `column:"LastModifyTime" modify:"true" json:"LastModifyTime" form:"LastModifyTime"`
	QuestionNo      int             `json:"QuestionNo" form:"QuestionNo" column:"QuestionNo" modify:"true"`
	ParentID        int             `json:"ParentID" form:"ParentID" column:"ParentID" modify:"true"`
	Level           int             `form:"Level" column:"Level" modify:"true" json:"Level"`
	IsPublic        int             `json:"IsPublic" form:"IsPublic" column:"IsPublic" modify:"true"`
	Status          int             `json:"Status" form:"Status" column:"Status" modify:"true"`
	TotalTimes      int             `form:"TotalTimes" column:"TotalTimes" modify:"true" json:"TotalTimes"`
	RightTimes      int             `column:"RightTimes" modify:"true" json:"RightTimes" form:"RightTimes"`
	RightRate       interface{}     `modify:"true" json:"RightRate" form:"RightRate" column:"RightRate"`
	IsMulti         int             `form:"IsMulti" column:"IsMulti" modify:"true" json:"IsMulti"`
	QuestionAnalyze *sql.NullString `json:"QuestionAnalyze" form:"QuestionAnalyze" column:"QuestionAnalyze" modify:"true"`
	HasVideo        int             `json:"HasVideo" form:"HasVideo" column:"HasVideo" modify:"true"`
	IsEssence       int             `json:"IsEssence" form:"IsEssence" column:"IsEssence" modify:"true"`
	Grade           int             `json:"Grade" form:"Grade" column:"Grade" modify:"true"`
	Subject         int             `column:"Subject" modify:"true" json:"Subject" form:"Subject"`
	OldID           int             `json:"OldID" form:"OldID" column:"OldID" modify:"true"`
	ShortQuestion   *sql.NullString `column:"ShortQuestion" modify:"true" json:"ShortQuestion" form:"ShortQuestion"`
}

func (r *WxEduQuestionsNew) Name() string {
	return RecordNameWxEduQuestionsNew
}
